package com.cy.wangly.feign.controller;

import com.cy.wangly.feign.client.FeignExceptionAspect;
import com.cy.wangly.feign.client.RestFulService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lingyun.wang on @date 2022/2/24
 */
@RestController
@RequestMapping(value = "/log")
public class LogController {
    Logger logger = LoggerFactory.getLogger(LogController.class);
    @Autowired
    private RestFulService restFulService;
    @Autowired
    private FeignExceptionAspect feignExceptionAspect;

    @GetMapping(value = "/anyPrint")
    public String getRandomInt(String str) {
        logger.info("test1");
        restFulService.getRandomInt();
        return str;
    }
}
